package com.ssy.lingxi.contract.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.contract.api.feign.PurchaseViePriceControllerFeign;
import com.ssy.lingxi.contract.api.model.vo.request.PurchaseViePriceAddVO;

import javax.validation.Valid;
import java.util.List;

/**
 * 采购竞价合同内部接口降级实现
 * @author 伍将
 * @date 2021/3/15
 * @version 2.0.0
 */
public class PurchaseViePriceControllerFeignFallback implements PurchaseViePriceControllerFeign {

    @Override
    public Wrapper<Void> addList(@Valid List<PurchaseViePriceAddVO> addVOList) {
        return Wrapper.fail(ResponseCode.CONTRACT_SERVICE_ERROR);
    }
}
